package is.common.util;

import java.util.regex.Pattern;

/**
 * @author aspr0
 *         Date: 21.04.12
 *         Time: 19:27
 */
public class Regex
{
    public static boolean stringMatches(String stringToCheck, String checkMask)
    {
        Pattern checkMaskPattern = Pattern.compile(checkMask);
        return checkMaskPattern.matcher(stringToCheck).matches();
    }

}
